import oss2
from config import config_settings

# 初始化OSS客户端
auth = oss2.AuthV4(config_settings.OSS_CONFIG['access_key_id'], config_settings.OSS_CONFIG['access_key_secret'])
bucket = oss2.Bucket(auth, config_settings.OSS_CONFIG['endpoint'], config_settings.OSS_CONFIG['bucket_name'],
                     is_cname=True, region=config_settings.OSS_CONFIG['region'])
